//
//  WScharonTV_ChannelHeaderView.m
//  CharonTVProject
//
//  Created by karong on 2023/7/31.
//

#import "WScharonTV_ChannelHeaderView.h"
#import "WSChannelItem.h"

@interface WScharonTV_ChannelHeaderView ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *moreBtn;

@property (nonatomic, assign) WSChannelItem * channelItem;

@end

@implementation WScharonTV_ChannelHeaderView

- (void)setDataWithObject:(WSChannelItem *)object {
    self.channelItem = object;
    self.titleLabel.text = object.name;
    self.moreBtn.hidden = !object.is_more;
}

@end
